#ifndef STACK1_H_
#define STACK1_H_


#endif /* STACK1_H_ */

#define FALSE 0
#define TRUE 1
#define DEFAULT_USER_INPUT_LENGTH 1024

typedef int Bool;

typedef struct node_struct {
	struct node_struct *next;
	char *str;
}Node;

typedef struct stack_struct {
	void *mutex;		//keeps the mutex generic as a type
	Node *head;
}Stack;

Stack *createStack();

void freeStack(Stack *);

void pop(Stack *stk);

int top(Stack *stk, char *buf);

int push(Stack *stk, char *str);
